<?php slot('clientsMenu') ?>
<ul>
    <?php foreach ($elements as $element): ?>
        <?php if ($element['visible_in_mainmenu']): ?>
            <li class="<?php echo $element == $node ? 'current_page_item' : '' ?>">
                <a href="<?php echo LinkGen::getInstance(LinkGen::STRUCTURE)->link($element->getId()) ?>">
                    <?php echo $element->getPageTitle() ?>
                </a>
            </li>
        <?php endif; ?>
    <?php endforeach; ?>
</ul>
<?php end_slot() ?>